package com.example.toy.core.partition;

import org.apache.avro.Schema;
import org.apache.hadoop.fs.Path;

import java.util.List;

/**
 * 实现分区路径和分区参数之间的转换
 *
 * @author shenbing
 * @date 2021/12/24
 */
public interface PartitionPathStyle {

  Path getDataDir();

  Path generate(Schema schema, Object... params);

  List<Object> fromPartitionPath(Schema schema, Path key);
}
